@layout('base')

@section('title')
<h1>login</h1>
@endsection

@section('content')
<div id="form400">
{{ Form::open() }}
    {{ Form::token() }}
    <!-- check for login errors flash var -->
    @if (Session::has('login_errors'))
    <div class="error"><p>username or password incorrect!</p></div>
    @endif

    <!-- username field -->
    <p>{{ Form::label('username', 'username') }}
    {{ Form::text('username') }}</p>

    <!-- password field -->
    <p>{{ Form::label('password', 'password') }}
    {{ Form::password('password') }}</p>

    <!-- submit button -->
    <p>{{ Form::submit('login') }}</p>
{{ Form::close() }}
</div>

@endsection
